package com.demoo.zjsu.service.smartwebsite.zhaoban;

import com.demoo.zjsu.service.smartwebsite.Page;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.springframework.stereotype.Service;

/**
 * Created by jshjsh on 2016/9/9.
 */
@Service
public class IndexPage3 extends IndexService{

    @Override
    public Elements getMain(Document document) {
        Elements elements = document.select("[width=104%]").eq(2).select("tr");
        for (Element element : elements) {
            element.select("a").eq(0).remove();
        }

        return elements;
    }


    @Override
    public Page getPage() {
        return new Page("http://zhaoban.zjsu.edu.cn/indexzb.asp","走进商大");
    }
}
